<<<<<<< HEAD
import request from '@/utils/require'

export const getUser = data => {
  return request({
    url: '/frame/profile',
    method: 'POST',
=======
import request from '../utils/request'

export const getUserList = params => {
  return request({
    method: 'GET',
    url: '/permissions',
    params
  })
}
export const getpowerList = () => {
  return request({
    method: 'GET',
    url: '/menus'
  })
}
export const delpowerList = id => {
  return request({
    method: 'DELETE',
    url: `/permissions/${id}`
  })
}
export const addpowerList = data => {
  return request({
    method: 'POST',
    url: '/permissions',
    data
  })
}
export const showpowerList = (id) => {
  return request({
    method: 'GET',
    url: `/permissions/${id}`,
    id
  })
}
export const exitspowerList = (id, data) => {
  return request({
    method: 'PUT',
    url: `/permissions/${id}`,
>>>>>>> 70ac1b15dcf4c329406054c495da593115ed84bd
    data
  })
}
